package org.easystub.dbstub;

public class PrimaryKey {
    private final String columnName;
    private final SqlType sqlType;
    private final Autogenerate autogenerate;

    public PrimaryKey(String columnName, SqlType sqlType) {
        this(columnName, sqlType, Autogenerate.BY_DEFAULT);
    }

    public PrimaryKey(String columnName, SqlType sqlType, Autogenerate autogenerate) {
        this.columnName = columnName;
        this.sqlType = sqlType;
        this.autogenerate = autogenerate;
    }

    public PrimaryKey(SqlType sqlType) {
        this("id", sqlType);
    }

    public String getColumnName() {
        return columnName;
    }

    public SqlType getSqlType() {
        return sqlType;
    }

    public Autogenerate getAutogenerate() {
        return autogenerate;
    }
}
